<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>华南理工大学计算机科学与工程学院</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: "Microsoft YaHei", Arial, sans-serif;
      background-color: #f5f5f5;
      color: #333;
    }

    /* 顶部导航栏 */
    .top-nav {
      background-color: #003366;
      color: white;
      padding: 5px 0;
      font-size: 12px;
    }

    .top-nav-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      padding: 0 20px;
    }

    .top-links a {
      color: #ccc;
      text-decoration: none;
      margin-right: 15px;
    }

    .top-links a:hover {
      color: white;
      text-decoration: underline;
    }

    /* 主标题区域 */
    .header-main {
      background-color: #004080;
      padding: 15px 0;
    }

    .header-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
    }

    .logo-area {
      display: flex;
      align-items: center;
    }

    .logo-img {
      width: 60px;
      height: 60px;
      margin-right: 15px;
    }

    .college-info h1 {
      color: white;
      font-size: 24px;
      font-weight: bold;
    }

    .college-info p {
      color: #ccc;
      font-size: 14px;
    }

    .search-box {
      display: flex;
    }

    .search-input {
      padding: 8px;
      border: none;
      border-radius: 4px 0 0 4px;
      width: 200px;
    }

    .search-button {
      background-color: #0066cc;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 0 4px 4px 0;
      cursor: pointer;
    }

    /* 主导航菜单 */
    .main-nav {
      background-color: #0055aa;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .nav-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .nav-menu {
      list-style: none;
      display: flex;
      flex-wrap: wrap;
    }

    .nav-item {
      position: relative;
    }

    .nav-link {
      display: block;
      color: white;
      text-decoration: none;
      padding: 15px 20px;
      font-size: 16px;
      transition: background-color 0.3s;
    }

    .nav-link:hover {
      background-color: #0077cc;
    }

    /* 轮播图区域 */
    .banner {
      position: relative;
      height: 400px;
      overflow: hidden;
    }

    .banner-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      opacity: 0;
      transition: opacity 1s ease-in-out;
    }

    .banner-slide.active {
      opacity: 1;
    }

    .banner-content {
      position: absolute;
      bottom: 50px;
      left: 50px;
      color: white;
      max-width: 600px;
      background: rgba(0, 0, 0, 0.6);
      padding: 20px;
    }

    .banner-content h2 {
      font-size: 28px;
      margin-bottom: 10px;
    }

    .banner-content p {
      font-size: 16px;
    }

    .banner-dots {
      position: absolute;
      bottom: 20px;
      right: 50px;
      display: flex;
    }

    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.5);
      margin: 0 5px;
      cursor: pointer;
    }

    .dot.active {
      background-color: white;
    }

    /* 主体内容区域 */
    .container {
      max-width: 1200px;
      margin: 20px auto;
      padding: 0 20px;
      display: flex;
    }

    /* 左侧内容 */
    .main-content {
      flex: 2;
      margin-right: 20px;
    }

    .section {
      background: white;
      margin-bottom: 20px;
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      overflow: hidden;
    }

    .section-header {
      background: #0055aa;
      color: white;
      padding: 12px 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .section-title {
      font-size: 18px;
      font-weight: bold;
    }

    .more-link {
      color: #ccc;
      text-decoration: none;
      font-size: 14px;
    }

    .more-link:hover {
      color: white;
      text-decoration: underline;
    }

    .section-body {
      padding: 15px;
    }

    .news-list {
      list-style: none;
    }

    .news-item {
      padding: 10px 0;
      border-bottom: 1px dashed #eee;
      display: flex;
    }

    .news-item:last-child {
      border-bottom: none;
    }

    .news-thumbnail {
      width: 80px;
      height: 60px;
      margin-right: 10px;
      object-fit: cover;
      border-radius: 3px;
    }

    .news-content {
      flex: 1;
    }

    .news-date {
      color: #999;
      font-size: 14px;
    }

    .news-title {
      margin-top: 5px;
    }

    .news-title a {
      color: #333;
      text-decoration: none;
    }

    .news-title a:hover {
      color: #0055aa;
      text-decoration: underline;
    }

    /* 右侧边栏 */
    .sidebar {
      flex: 1;
    }

    .quick-links-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .link-item {
      padding: 8px;
      background: #f0f8ff;
      border-radius: 3px;
      text-align: center;
    }

    .link-item a {
      color: #0055aa;
      text-decoration: none;
      font-size: 14px;
    }

    .link-item a:hover {
      text-decoration: underline;
    }

    /* 学院概况图标 */
    .overview-icons {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 15px;
      text-align: center;
      padding: 15px 0;
    }

    .icon-item {
      padding: 10px 5px;
    }

    .icon-img {
      width: 50px;
      height: 50px;
      margin: 0 auto 10px;
      display: block;
    }

    .icon-text {
      font-size: 14px;
    }

    /* 底部 */
    .footer {
      background: #333;
      color: #ccc;
      padding: 30px 0 20px;
      margin-top: 30px;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .footer-top {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .footer-column {
      flex: 1;
    }

    .footer-title {
      color: white;
      margin-bottom: 15px;
      font-size: 16px;
    }

    .footer-links {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 8px;
    }

    .footer-links a {
      color: #ccc;
      text-decoration: none;
    }

    .footer-links a:hover {
      color: white;
      text-decoration: underline;
    }

    .copyright {
      text-align: center;
      padding-top: 20px;
      border-top: 1px solid #555;
      font-size: 14px;
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
      .container {
        flex-direction: column;
      }
      
      .main-content {
        margin-right: 0;
        margin-bottom: 20px;
      }
      
      .nav-menu {
        flex-direction: column;
      }
      
      .banner {
        height: 250px;
      }
      
      .banner-content {
        left: 20px;
        bottom: 20px;
        max-width: calc(100% - 40px);
      }
      
      .overview-icons {
        grid-template-columns: repeat(2, 1fr);
      }
    }
  </style>
</head>
<body>
  <!-- 顶部导航栏 -->
  <div class="top-nav">
    <div class="top-nav-content">
      <div class="top-links">
        <a href="#">学校首页</a>
        <a href="#">统一门户</a>
        <a href="#">公共邮箱</a>
        <a href="#">办事大厅</a>
      </div>
      <div class="lang-switch">
        <a href="#" style="color: #ccc; text-decoration: none;">EN</a>
      </div>
    </div>
  </div>

  <!-- 主标题区域 -->
  <header class="header-main">
    <div class="header-content">
      <div class="logo-area">
        <img src="images/logo.png" alt="华南理工大学" class="logo-img">
        <div class="college-info">
          <h1>华南理工大学</h1>
          <p>计算机科学与工程学院</p>
        </div>
      </div>
      <div class="search-box">
        <input type="text" class="search-input" placeholder="请输入搜索关键词">
        <button class="search-button">搜索</button>
      </div>
    </div>
  </header>

  <!-- 主导航菜单 -->
  <nav class="main-nav">
    <div class="nav-content">
      <ul class="nav-menu">
        <li class="nav-item"><a href="#" class="nav-link">学院首页</a></li>
        <li class="nav-item"><a href="#" class="nav-link">学院概况</a></li>
        <li class="nav-item"><a href="#" class="nav-link">师资队伍</a></li>
        <li class="nav-item"><a href="#" class="nav-link">人才培养</a></li>
        <li class="nav-item"><a href="#" class="nav-link">科学研究</a></li>
        <li class="nav-item"><a href="#" class="nav-link">学科建设</a></li>
        <li class="nav-item"><a href="#" class="nav-link">党群工作</a></li>
        <li class="nav-item"><a href="#" class="nav-link">学生工作</a></li>
        <li class="nav-item"><a href="#" class="nav-link">校友园地</a></li>
      </ul>
    </div>
  </nav>

  <!-- 轮播图 -->
  <section class="banner">
    <div class="banner-slide active">
      <img src="images/banner1.jpg" alt="校园风光" style="width: 100%; height: 100%; object-fit: cover;">
      <div class="banner-content">
        <h2>华南理工大学计算机科学与工程学院</h2>
        <p>致力于培养具有国际视野和创新能力的计算机专业人才</p>
      </div>
    </div>
    <div class="banner-slide">
      <img src="images/banner2.jpg" alt="学术研究" style="width: 100%; height: 100%; object-fit: cover;">
      <div class="banner-content">
        <h2>学科建设成果显著</h2>
        <p>多个研究方向达到国际先进水平</p>
      </div>
    </div>
    <div class="banner-dots">
      <div class="dot active"></div>
      <div class="dot"></div>
    </div>
  </section>

  <!-- 主体内容 -->
  <div class="container">
    <!-- 左侧内容 -->
    <main class="main-content">
      <!-- 学院新闻 -->
      <section class="section">
        <div class="section-header">
          <div class="section-title">学院新闻</div>
          <a href="#" class="more-link">更多+</a>
        </div>
        <div class="section-body">
          <ul class="news-list">
            <li class="news-item">
              <img src="images/news1.jpg" alt="新闻图片" class="news-thumbnail">
              <div class="news-content">
                <span class="news-date">2023-10-15</span>
                <div class="news-title"><a href="#">我院荣获国家级教学成果奖二等奖</a></div>
              </div>
            </li>
            <li class="news-item">
              <img src="images/news2.jpg" alt="新闻图片" class="news-thumbnail">
              <div class="news-content">
                <span class="news-date">2023-10-12</span>
                <div class="news-title"><a href="#">计算机学科进入ESI全球前1‰</a></div>
              </div>
            </li>
            <li class="news-item">
              <img src="images/news3.jpg" alt="新闻图片" class="news-thumbnail">
              <div class="news-content">
                <span class="news-date">2023-10-08</span>
                <div class="news-title"><a href="#">我院承办国际人工智能会议</a></div>
              </div>
            </li>
            <li class="news-item">
              <img src="images/news4.jpg" alt="新闻图片" class="news-thumbnail">
              <div class="news-content">
                <span class="news-date">2023-09-28</span>
                <div class="news-title"><a href="#">新生开学典礼隆重举行</a></div>
              </div>
            </li>
            <li class="news-item">
              <img src="images/news5.jpg" alt="新闻图片" class="news-thumbnail">
              <div class="news-content">
                <span class="news-date">2023-09-20</span>
                <div class="news-title"><a href="#">我院科研团队在顶级期刊发表论文</a></div>
              </div>
            </li>
          </ul>
        </div>
      </section>

      <!-- 通知公告 -->
      <section class="section">
        <div class="section-header">
          <div class="section-title">通知公告</div>
          <a href="#" class="more-link">更多+</a>
        </div>
        <div class="section-body">
          <ul class="news-list">
            <li class="news-item">
              <img src="images/notice1.jpg" alt="通知图片" class="news-thumbnail">
              <div class="news-content">
                <span class="news-date">2023-10-16</span>
                <div class="news-title"><a href="#">关于2023年国庆节期间实验室开放安排的通知</a></div>
              </div>
            </li>
            <li class="news-item">
              <img src="images/notice2.jpg" alt="通知图片" class="news-thumbnail">
              <div class="news-content">
                <span class="news-date">2023-10-14</span>
                <div class="news-title"><a href="#">2023年度专业技术职务晋升工作安排</a></div>
              </div>
            </li>
            <li class="news-item">
              <img src="images/notice3.jpg" alt="通知图片" class="news-thumbnail">
              <div class="news-content">
                <span class="news-date">2023-10-10</span>
                <div class="news-title"><a href="#">关于开展实验室安全检查的通知</a></div>
              </div>
            </li>
            <li class="news-item">
              <img src="images/notice4.jpg" alt="通知图片" class="news-thumbnail">
              <div class="news-content">
                <span class="news-date">2023-10-05</span>
                <div class="news-title"><a href="#">2023级研究生新生入学须知</a></div>
              </div>
            </li>
          </ul>
        </div>
      </section>
    </main>

    <!-- 右侧边栏 -->
    <aside class="sidebar">
      <!-- 学院概况 -->
      <section class="section">
        <div class="section-header">
          <div class="section-title">学院概况</div>
          <a href="#" class="more-link">更多+</a>
        </div>
        <div class="overview-icons">
          <div class="icon-item">
            <img src="images/teacher.png" alt="师资队伍" class="icon-img">
            <div class="icon-text">师资队伍</div>
          </div>
          <div class="icon-item">
            <img src="images/education.png" alt="人才培养" class="icon-img">
            <div class="icon-text">人才培养</div>
          </div>
          <div class="icon-item">
            <img src="images/research.png" alt="科学研究" class="icon-img">
            <div class="icon-text">科学研究</div>
          </div>
          <div class="icon-item">
            <img src="images/discipline.png" alt="学科建设" class="icon-img">
            <div class="icon-text">学科建设</div>
          </div>
        </div>
      </section>

      <!-- 快速通道 -->
      <section class="section">
        <div class="section-header">
          <div class="section-title">快速通道</div>
        </div>
        <div class="section-body">
          <div class="quick-links-grid">
            <div class="link-item"><a href="#">教务管理系统</a></div>
            <div class="link-item"><a href="#">研究生系统</a></div>
            <div class="link-item"><a href="#">实验中心</a></div>
            <div class="link-item"><a href="#">图书馆资源</a></div>
            <div class="link-item"><a href="#">就业信息</a></div>
            <div class="link-item"><a href="#">学术报告</a></div>
            <div class="link-item"><a href="#">下载中心</a></div>
            <div class="link-item"><a href="#">联系方式</a></div>
          </div>
        </div>
      </section>

      <!-- 友情链接 -->
      <section class="section">
        <div class="section-header">
          <div class="section-title">友情链接</div>
        </div>
        <div class="section-body">
          <div class="quick-links-grid">
            <div class="link-item"><a href="#">华南理工大学</a></div>
            <div class="link-item"><a href="#">教育部</a></div>
            <div class="link-item"><a href="#">科技部</a></div>
            <div class="link-item"><a href="#">国家自然科学基金委</a></div>
            <div class="link-item"><a href="#">中国计算机学会</a></div>
            <div class="link-item"><a href="#">ACM</a></div>
            <div class="link-item"><a href="#">IEEE</a></div>
            <div class="link-item"><a href="#">Springer</a></div>
          </div>
        </div>
      </section>
    </aside>
  </div>

  <!-- 底部 -->
  <footer class="footer">
    <div class="footer-content">
      <div class="footer-top">
        <div class="footer-column">
          <h3 class="footer-title">联系我们</h3>
          <ul class="footer-links">
            <li>地址：广东省广州市番禺区大学城华南理工大学计算机科学与工程学院</li>
            <li>邮编：510006</li>
            <li>电话：020-39380252</li>
            <li>传真：020-39380252</li>
          </ul>
        </div>
        <div class="footer-column">
          <h3 class="footer-title">常用链接</h3>
          <ul class="footer-links">
            <li><a href="#">学校主页</a></li>
            <li><a href="#">教务处</a></li>
            <li><a href="#">研究生院</a></li>
            <li><a href="#">图书馆</a></li>
          </ul>
        </div>
        <div class="footer-column">
          <h3 class="footer-title">社交媒体</h3>
          <ul class="footer-links">
            <li><a href="#">官方微信</a></li>
            <li><a href="#">官方微博</a></li>
            <li><a href="#">官方抖音</a></li>
          </ul>
        </div>
      </div>
      <div class="copyright">
        <p>© 2023 华南理工大学计算机科学与工程学院 版权所有</p>
        <p>粤ICP备05084312号</p>
      </div>
    </div>
  </footer>

  <script>
    // 轮播图功能
    document.addEventListener('DOMContentLoaded', function() {
      const slides = document.querySelectorAll('.banner-slide');
      const dots = document.querySelectorAll('.dot');
      let currentIndex = 0;

      function showSlide(index) {
        slides.forEach(slide => slide.classList.remove('active'));
        dots.forEach(dot => dot.classList.remove('active'));
        
        slides[index].classList.add('active');
        dots[index].classList.add('active');
        currentIndex = index;
      }

      function nextSlide() {
        const nextIndex = (currentIndex + 1) % slides.length;
        showSlide(nextIndex);
      }

      // 自动轮播
      let slideInterval = setInterval(nextSlide, 5000);

      // 鼠标悬停时暂停轮播
      const banner = document.querySelector('.banner');
      banner.addEventListener('mouseenter', () => {
        clearInterval(slideInterval);
      });
      
      banner.addEventListener('mouseleave', () => {
        slideInterval = setInterval(nextSlide, 5000);
      });

      // 点击小圆点切换
      dots.forEach((dot, index) => {
        dot.addEventListener('click', () => {
          showSlide(index);
        });
      });

      // 图片加载错误处理
      const imgs = document.querySelectorAll('img');
      imgs.forEach(img => {
        img.addEventListener('error', function() {
          // 可以在这里设置默认图片
          console.log('图片加载失败: ' + this.src);
        });
      });
    });
  </script>
</body>
</html>